<%@ page language="java" contentType="text/html; charset=ISO-8859-1"  pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@page import="com.alderfgdev.opendoc.seguridad.beans.E_Usuario"%>
<table width="95%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
		<td height="20" width="30%" align="right">
			<div style="width: 125;height: 123px; border: 2px solid #0986DC;">
				<img style="width: 125;height: 123px;" alt="" src="<%= request.getContextPath() %>/avatar.action">
			</div>
		</td>
		<td width="70%" align="left" height="123px">
			<table width="65%" cellpadding="0" cellspacing="0" style="padding: 5xp">
				<tr>
					<td>&nbsp;&nbsp; <s:text name="welcome.frase1" /> 
					</td>
				</tr>
				<tr>
					<td align="center">
					45454
					<div id="dv_body">
					    <table width="100%" >
					        <tr>
					            <td width="10" style="background-image: url(<?= URL_SERVER ?>images/border_top_left.jpg); background-repeat:repeat-x" height="500"></td>
					            <td width="901"  valign="top" >545
					            	<table width="880px" border="0" cellpadding="1" cellspacing="0">
										<tr><td colspan="8" height="20"></td></tr>
										<tr valign="middle">
											<td align="left" colspan="8" >
												<img align="middle" width="24" height="24" alt="" src="<?= URL_SERVER ?>/images/icons/icon_vineta.png" >
												<span class="titulo" >&nbsp; <?= $i18n["welcome_titulo"]?> 
													<? 
														$usuario = $_SESSION['usuario'];
					echo($usuario['nombres_usu']." ".$usuario['apellidos_usu']); 
				?></span>
											</td>
										</tr>
										<tr><td colspan="8" height="20"></td></tr>
										<tr class="tbl_Manto_cabecera_pie">
											
											<td colspan="8" height="20" >
												<div id="div_listado_contenedor">
													<table width="100%" border="0" cellspacing="2" >
														<?
																$ltsOpciones = $_SESSION['ltsOpciones'];
							$j = 0;
							for($i = 0; $i < count($ltsOpciones); $i++){
								if($j == 0)echo("<tr valign=\"middle\">");
							
								if($ltsOpciones[$i]["nivel_opc"] == 1){
									echo("<td onclick=\"JavaScript:document.location.href='".$ltsOpciones[$i]["url_opc"]."'\"; valign=\"middle\" style=\"width:25%;background:white;border:1px solid #CCCCCC;cursor:pointer;\">");
									echo("<img style=\"margin-left:10px;\" align=\"left\" src=\"".URL_SERVER."/images/opciones/".$ltsOpciones[$i]["img_opc"]."\">");
									echo("<span style=\"margin-top:50px;\"><b><br>".$ltsOpciones[$i]["descripcion_opc"]."</b></span>");
									echo("</td>");
									$j++;
									if($j % 4==0)echo("</tr><tr valign=\"middle\">");
								}
							}
							echo("</tr>");
						?>
													</table>
												</div>
										    </td>
											
										</tr>    
										<tr>
									    	<td colspan="8" height="20" align="center">
										    </td>
									    </tr>
									</table>
					             </td>
					            <td width="10" style="background-image: url(<?= URL_SERVER ?>images/border_top_right.jpg); background-repeat:no-repeat"></td>
					        </tr>
					    </table>
					</div>
					
						<s:property value="#session.objE_Usuario.strNombre_Usu"/>
						<s:property value="#session.objE_Usuario.strApellido_Usu"/>
					</td>
				</tr>
				<tr>
					<td align="center">
						<s:a action="principal">
							<s:text name="welcome.frase2" />
							<img src="<%= request.getContextPath() %>/images/btns/btn_arrow_right.png" >
						</s:a>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>